package com.ruoyi.procurementmanagement.mapper;

import com.ruoyi.procurementmanagement.domain.ErpGoodsLabel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ErpGoodsLabelRelationMapper {
    /**
     * 根据商品ID删除关联关系
     * @param goodsId 商品ID
     */
    int deleteByGoodsId(@Param("goodsId") Long goodsId);

    /**
     * 新增商品标签关联
     */
    int insertErpGoodsLabelRelation(@Param("goodsId") Long goodsId, @Param("labelId") Long labelId);

    /**
     * 根据商品ID查询标签列表
     * @param goodsId 商品ID
     * @return 标签列表
     */
    List<ErpGoodsLabel> selectLabelsByGoodsId(@Param("goodsId") Long goodsId);
}
